<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="../js/jquery-1.5.1.min.js"></script>
<script type="text/javascript">
function sendMsg(){
	$.ajax({
		url : '../TestCodeServlet',
		data : {
			phone : $('#txtPhone').val()
		},
		success : function(data, status, xhr){
			alert(data)
		},
		error : function(xhr, errorType, error){
			alert(xhr.responseText)
		}
	});
}
</script>
</head>
<body>
	请输入手机号码:<input id="txtPhone" type="text"><br>
	<input type="button" value="点击发送" onClick="sendMsg()">
</body>
</html>